package go84;

public class Pos {
	public int x;
	public int y;

	public Pos() {
		x = 0;
		y = 0;
	}

	public Pos(double a, double b) {
		x = (int) a;
		y = (int) b;
	}

	public Pos(int a, int b) {
		x = a;
		y = b;
	}
	public CordPos toGeo(int zone) {
		double[] temp = new double[2];
		if(Convertor.toGeographic(x, y, zone, false, temp))
			return new CordPos(temp[1],temp[0]);
		else
			return null;
	}
}
